package com.wlz.config;

import com.wlz.bean.Person;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * @author wlz
 * @date 2022-05-23  9:27 下午
 */
@Configuration
@PropertySource(value = {"classpath:person.properties"}) // 指定外部文件位置
public class AppConfig5 {

	@Bean
	public Person person() {
		return new Person();
	}

}
